package com.example.test.servicelmpl;

import com.example.test.bean.UserBean;
import com.example.test.mapper.UserMapper;
import com.example.test.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServicelmpl implements UserService {

    //将DAO注入Service层
    @Resource
    private UserMapper userMapper;

    @Override
    public UserBean loginln(String name,String password){

        return userMapper.getlnfo(name,password);
    }

    @Override
    public List<UserBean> getAllUser() {
        return null;
    }

    @Override
    public List<UserBean>getAllUser(){
        return userMapper.getAllUser();
    }
}
